﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 图片列表控件
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void toolStripContainer1_TopToolStripPanel_Click(object sender, EventArgs e)
        {

        }

        private void toolStripStatusLabel1_Click(object sender, EventArgs e)
        {

        }

        private void toolBar1_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
         
                if (toolBar1.Buttons.IndexOf(e.Button)==0)
                {
                    tsslb1.Text = DateTime.Now.ToString();
                    timer1.Enabled = true;
                }
         
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            tsslb1.Text = DateTime.Now.ToString();
        }
    }
}
